# -*- coding: UTF-8 -*-

import sys, re
from os.path import dirname
from setuptools import setup, find_packages


VERSIONFILE='pykyfx/__init__.py'
verstrline = open(VERSIONFILE, 'rt').read()
VSRE = r'^__version__\s+=\s+[\'"]([^\'"]+)[\'"]'
mo = re.search(VSRE, verstrline, re.M)
if mo:
    verstr = mo.group(1)
else:
    raise RuntimeError("Unable to find version string in %s." % VERSIONFILE)

setup(
    name='pykyfx_realflow',
    version=verstr,
    url='https://git.oschina.net/minerva/Pykyfx.git',
    description='python kyfx',
    long_description=open('README.md', 'r').read(),
    author='yuanlufeng',
    author_email='yuanlufeng@xwtech.com',
    license='MIT',
    packages=find_packages(exclude=('tests', 'tests.*')),
    entry_points={
        'console_scripts': ['pykyfx = pykyfx.src.main:start']
    },
    classifiers=[
        'Environment :: Console',
        'License :: OSI Approved :: MIT License',
        'Programming Language :: Python :: 2.7',
    ],
)
